<template>
  <t-custom-page :scrollY="false">
    <template #navbar>
      <t-navbar title="首页" />
    </template>
    <t-z-paging :api="request.queryListLong" :extraData="{ component: 'test' }">
      <template #loading>
        <view>正在加载</view>
      </template>
    </t-z-paging>
    <template #tabbar>
      <t-tabbar />
    </template>
  </t-custom-page>
</template>

<script setup>
import { ref, computed, getCurrentInstance } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import request from '@/http/request'

const title = ref('标题')
const { proxy, appContext } = getCurrentInstance()
const theme = computed(() => proxy.theme)

const link = () => {
  appContext.config.globalProperties.$dialog.show({
    maskCloseAble: false,
    extraData: {
      forceUpdate: false,
      content:
        '1. 开放一键采集功能开放一键采集功开放一键采集功开放一键采集功\n2. 修复部分车辆生成海报错误问题\n3. 替换扫码组件\n4. 部分样式调整\n1. 开放一键采集功能\n2. 修复部分车辆生成海报错误问题\n3. 替换扫码组件\n4. 部分样式调整',
      fileUrl: 'https://nfile.webnotepad.net/uploads/20231207/47a055023a8e0d12c55b5cefb6e78216.wgt',
      type: 1
    }
  })
}
</script>

<style lang="scss" scoped>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin-top: 200rpx;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50rpx;
}

.text-area {
  display: flex;
  justify-content: center;
}
</style>
